package 泛型

object GenericDemo03 {
  def main(args: Array[String]): Unit = {
    val value = List(1, 2, 3, 4, 5)
    val i = midList[Int](value)
    print(i)
  }

  def midList[E](l: List[E]) = {
    l(l.length / 2)
  }
}
